//
//  BVTCell.h
//  BuyVegetable
//
//  Created by zhuzi on 16/10/27.
//  Copyright © 2016年 com.yinding. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BVMycollectionModel.h"
#import "BVShoppingCart.h"
#import "BVShoppingCartFrame.h"

@interface BVMyCollectionCell : UITableViewCell

typedef void(^RadioBlock)(NSIndexPath *,BOOL);
typedef void(^AddBlock)(NSIndexPath *);
typedef void(^MinusBlock)(NSIndexPath *);

/**
 *  单选
 */
@property (nonatomic, strong) UIButton *radioButton;
/**
 *  配图
 */
@property (nonatomic, strong) UIImageView *iconImageV;
/**
 *  商品名称
 */
@property (nonatomic, strong) UILabel *nameLabel;
/**
 *  促销
 */
@property (nonatomic, strong) UILabel *salesLabel;
/**
 *  单价
 */
@property (nonatomic, strong) UILabel *unitPriceLabel;
/**
 *  重量
 */
@property (nonatomic, strong) UILabel *weightLabel;
/**
 *  小计
 */
@property (nonatomic, strong) UILabel *totalLabel;
/**
 *  限购提示语
 */
@property (nonatomic, strong) UILabel *limitLabel;
/**
 *  减
 */
@property (nonatomic, strong) UIButton *minusButton;
/**
 *  加
 */
@property (nonatomic, strong) UIButton *addButton;
/**
 *  数量
 */
@property (nonatomic, strong) UILabel *numLabel;
/**
 *  删除
 */
@property (nonatomic, strong) UIButton *deleteButton;

@property (nonatomic, assign) NSInteger number;
@property (nonatomic, strong) BVShoppingCart *shoppingCart;
@property (nonatomic, strong) BVShoppingCartFrame *shoppingCartFrame;

#pragma mark - 真数据的model
@property (nonatomic, strong) BVMycollectionModel *mycollectionModel;

#pragma mark - block
@property (nonatomic, copy  ) RadioBlock radioBlock;
@property (nonatomic, strong) NSIndexPath *indexPath;

#pragma mark - 设置 删除按钮的代理
@property id delegate;
@end
@protocol myCollectionCell <NSObject>
@required

@optional
- (void)delegateButClick:(NSIndexPath *)indexPath;

@end
